from compiler.lexical.lexical_analyzer import LexicalAnalyzer


def main():
    lines = [
        'int 123b = 5;',
        'int b = 1.5;',
        'for(int i=0; i<n; ++i)',
        '   cout << i << " "',
    ]
    # 词法分析
    la = LexicalAnalyzer(lines)
    # 展示分词结果
    la.show_participle_result()
    # 词法检查
    la.check()


if __name__ == '__main__':
    main()
